package main

import (
	"fmt"
	"reflect"
)

func main() {
	type T struct {
		A int
		B string
	}
	t := T{
		A: 23,
		B: "demo",
	}
	s := reflect.ValueOf(&t).Elem()
	// typeofT := s.Type()
	s.Field(0).SetInt(77)
	s.Field(1).SetString("sunset strip")
	fmt.Println("t is now", t)
}
